package cn.elane.kibana.demo.core.index.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class PageController {

	@GetMapping("/toPage")
	public String toPage(@RequestParam("name") String pageName, String param) {
		/*try {
			if (param != null && !"".equals(param)) {
//				System.err.println(param);
//				System.err.println(URLDecoder.decode(param, "UTF-8"));
				ModelAndView mav = new ModelAndView(pageName);
				mav.addObject("param", new NameBean(param));
			}
			return pageName;
		} catch (Exception e) {
			e.printStackTrace();
		}*/
		return pageName;
	}
}
